<template>
    <div>
        <nut-popup
            position="bottom"
            :visible="props.visible"
            :style="{ height: '40%' }"
            @update:visible="(val: boolean) => emits('update:visible', val)"
        >
            <CargoInfo />
        </nut-popup>
    </div>
</template>

<script lang="ts">
export default { name: 'DetailPopup' }
</script>

<script lang="ts" setup>
import { getCurrentInstance, ComponentInternalInstance, reactive, ref, nextTick, onMounted, useAttrs, useSlots } from 'vue'
import CargoInfo from './CargoInfo.vue'

// const slots = useSlots()
// const attrs = useAttrs()
const emits = defineEmits(['update:visible'])
const { proxy }:any = getCurrentInstance() as ComponentInternalInstance

const props = defineProps({
    visible: {
        type: Boolean,
        default: false
    }
})

const state = reactive({

})

// defineExpose({

// })
</script>
<style lang="scss" scoped>

</style>